/**
 * 判断当前设备是否是pc设备
 * @return { Boolean }
 */
export function isPc(): Boolean {
  const userAgentInfo = navigator.userAgent;
  const agents: string[] = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod'];

  for (let v = 0; v < agents.length; v++) {
    if (userAgentInfo.indexOf(agents[v]) > 0) {
      return false;
    }
  }

  return true;
}

export default {};
